<script setup>
import {ref} from "vue";

const money = ref(500)
const borrow = (count) => {
  console.log("曹植：V你50")
  money.value -= count
}


defineExpose({
  borrow,
  money
})
</script>

<template>
  <div class="content">
    我是儿子曹植，我有{{ money }}元
  </div>
</template>

<style scoped>
.content {
  width: 300px;
  height: 300px;
  background-color: palevioletred;
}
</style>
